POV-Ray : Newsgroups : povray.off-topic : Can someone research a stupid bug report for me? : Re: Can someone research a stupid bug report for me? Server Time
11 Oct 2024 11:11:52 EDT (-0400)
  Re: Can someone research a stupid bug report for me?  
From: Greg M  Johnson
Date: 18 Sep 2007 21:12:42
Message: <46f0778a@news.povray.org>
Warp wrote:

> John VanSickle <evi### [at] hotmailcom> wrote:
>> #declare rsA=seed(Frame);
>> #declare rsB=seed(floor(12345*rand(rsA)));
> 
>> And use rsB as the primary seed for things.
> 
>   Knowing how the random number generator used by povray works (it's
>   pretty
> simple, actually), I'm quite convinced that method doesn't actually add
> any more "randomness" than simply using rsA as the seed. It simply
> produces different results, that's all.
> 

If the phenomenon I observed is valid, then it could be helpful to have an
less-predictable value by setting the seed based on something that varies
wildly as a function of frame_number: I was using cos & sin.


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.